#import <Foundation/Foundation.h>

#import <Cordova/CDV.h>
#import <Cordova/CDVPlugin.h>

#import <AMapLocationKit/AMapLocationKit.h>

@interface CDVAMapLocationPlugin : CDVPlugin<AMapLocationManagerDelegate>

@property(nonatomic,strong)NSString *userAMapKey;
@property (nonatomic, strong) NSString *currentCallbackId;

@property (nonatomic, copy) AMapLocatingCompletionBlock completionBlock;
@property (nonatomic, strong) AMapLocationManager *locationManager;

- (void)getAmapLocation:(CDVInvokedUrlCommand*)command;
@end